﻿using ImModels.Service.Models.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ImModels.View
{
    /// <summary>
    /// 用户上线 请求参数视图
    /// </summary>
    public class UserOnlineReq
    {
        /// <summary>
        /// 业务用户ID 全局唯一
        /// </summary>
        public string BizUserId { get; set; } = "";

        /// <summary>
        /// 全名
        /// </summary>
        public string FullName { get; set; } = "";


        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; } = "";

        /// <summary>
        /// 头像
        /// </summary>
        public string HeadImg { get; set; } = "";

        /// <summary>
        /// 职位 在聊天框显示
        /// </summary>
        public string JobName { get; set; } = "";

        /// <summary>
        /// 联系电话
        /// </summary>
        public string ContactTel { get; set; } = "";

        /// <summary>
        /// 扩展字段 业务自定义 查询的时候 自定义展示即可
        /// </summary>
        public string UserInfo { get; set; } = "";
    }

    /// <summary>
    /// 用户上线 响应返回视图
    /// </summary>
    public class UserOnlineRes
    {
        public string JwtInfo { get; set; } = "";
        /// <summary>
        /// 连接信息
        /// </summary>
        public WebSocketView wsdata { get; set; }

        /// <summary>
        /// 登录用户信息
        /// </summary>
        public Users user { get; set; }
    }

    //public class LoginUser
    //{
    //    public UserView user { get; set; }

    //    public List<UserFriendView> friend { get; set; }

    //    public List<UserGroupView> group { get; set; }
    //}
}
